// NetClientDlg.h : header file
//

#pragma once


// CNetClientDlg dialog
class CNetClientDlg : public CDialog
{
// Construction
public:
	CNetClientDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_NETCLIENT_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

public:
	void Initialize();
	void UnInitialize();

public:
	static BOOL CALLBACK RealDataCallBack(void *pBufferData, UINT32 nBufSize, UINT32 nContext, void *pContext);
	 BOOL RealData(void *pBufferData, UINT32 nBufSize, UINT32 nContext);

	 static BOOL CALLBACK AnchorDataCallBack(void *pBufferData, UINT32 nBufSize, UINT32 nContext, void *pContext);
	 BOOL AnchorData(void *pBufferData, UINT32 nBufSize, UINT32 nContext);
public:
	HANDLE m_hPlayer;
	HANDLE m_hLogin;
	HANDLE m_hRealStream;
	HANDLE m_hAnchor;
public:
	CWnd *m_PlayWnd;

//#define dkq_write_264
#ifdef dkq_write_264
	FILE *m_h264;
#endif

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL DestroyWindow();
	afx_msg void OnBnClickedBtnStartplaystram();
	afx_msg void OnBnClickedBtnStopplaystream();

	afx_msg LRESULT OnUserMsg(WPARAM wParam, LPARAM lParam);
	afx_msg void OnBnClickedBtnGetAnchor();
protected:
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
};
